# This file is part of BlackArch Linux ( https://www.blackarch.org/ ).
# See COPYING for license details.

pkgname=interrogate
pkgver=5.eb5f071
pkgrel=1
groups=('blackarch' 'blackarch-forensic' 'blackarch-cracker')
pkgdesc='A proof-of-concept tool for identification of cryptographic keys in
binary material (regardless of target operating system), first and foremost for memory dump analysis and forensic usage.'
arch=('x86_64' 'aarch64')
url='https://github.com/carmaa/interrogate'
license=('GPL3')
makedepends=('git')
source=("git+https://github.com/carmaa/$pkgname.git")
sha512sums=('SKIP')

pkgver() {
  cd $pkgname

  echo $(git rev-list --count HEAD).$(git rev-parse --short HEAD)
}

build() {
  cd $pkgname

  make
}

package() {
  cd $pkgname

  install -Dm 755 $pkgname "$pkgdir/usr/bin/$pkgname"
  install -Dm 644 -t "$pkgdir/usr/share/doc/$pkgname/" README.md
  install -Dm 644 license.txt "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
}

